package com.ic.remote;

import IC.common.core.constant.ServiceNameConstants;
import IC.common.core.domain.R;
import IC.system.api.factory.RemoteUserFallbackFactory;
import com.ic.domain.response.FaceDetectionResponse;
import com.ic.domain.response.FaceDetectionResponse2;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(contextId = "RemoteTofaceservice", value = ServiceNameConstants.IC_VIDEOPATROL, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteTofaceservice {
    /**
     * 人像识别
     */
    @PostMapping("/recognize-faceDetect")
    public R<FaceDetectionResponse> recognizeFaceContrast(@RequestParam("image") String imageBase64);


    /**
     * 人像对比
     *
     * @param imageBase64
     * @throws Exception
     */
    @PostMapping("/imgContrast")
    public R<FaceDetectionResponse2> imgContrast(@RequestParam("image")String imageBase64);



}
